package com.rapid.maintenance.ui.activity.machining;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.rapid.maintenance.R;
import com.rapid.maintenance.adapter.MachiningTagAdapter;
import com.rapid.maintenance.adapter.MachiningWikiAdapter;
import com.rapid.maintenance.base.BaseActivity;

import butterknife.BindView;

public class MachiningWikiListActivity extends BaseActivity {
    @BindView(R.id.tags)
    RecyclerView tags;
    @BindView(R.id.wiki)
    RecyclerView wiki;
    private MachiningTagAdapter tagAdapter;
    private MachiningWikiAdapter wikiAdapter;

    @Override
    protected int provideRootLayout() {
        return R.layout.activity_machining_wiki_list;
    }

    @Override
    protected void init() {
        setTitle("加工百科");
        setStatusBarColor(0xFF016DB6);
        setToolBarColor(0xFF016DB6);
        tags.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false));
        tags.setAdapter(tagAdapter = new MachiningTagAdapter());
        tagAdapter.addData("冶金");
        tagAdapter.addData("机械");
        tagAdapter.addData("电子");
        tagAdapter.addData("化学");
        tagAdapter.addData("冶金1");
        tagAdapter.addData("机械1");
        tagAdapter.addData("电子1");
        tagAdapter.addData("化学1");
        tagAdapter.addData("冶金2");
        tagAdapter.addData("机械2");
        tagAdapter.addData("电子2");
        tagAdapter.addData("化学2");
        tagAdapter.addData("冶金3");
        tagAdapter.addData("机械3");
        tagAdapter.addData("电子3");
        tagAdapter.addData("化学3");
        wiki.setAdapter(wikiAdapter = new MachiningWikiAdapter());
        wikiAdapter.addData(new Object());
        wikiAdapter.addData(new Object());
        wikiAdapter.addData(new Object());
        wikiAdapter.addData(new Object());
        wikiAdapter.addData(new Object());
        wikiAdapter.addData(new Object());
        wikiAdapter.addData(new Object());
        wikiAdapter.addData(new Object());
        wikiAdapter.addData(new Object());
    }

}
